package com.xhl.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.xhl.vo.OrderItemVO;

@Repository
public interface IOrderItemDao {
    public List<OrderItemVO> queryOrderItemId(@Param("oid") String oid);

    public OrderItemVO queryOrderItemOiid(@Param("oiid") String oiid);

    public Long queryOrderItem(String uid);

    public List<OrderItemVO> queryOrderItemInfo(String uid);

    public Long queryNumberSum(@Param("pid") String pid);

    public void deleteOrderItem(String oiid);

    public void updateOrderItem(@Param("oiid") String oiid, @Param("number") String number);

    public void updateOid(@Param("oid") String oid, @Param("oiid") String oiid);

    public String orderSUM(@Param("pid") String pid);

    public void shoppingTrolley(OrderItemVO oivo);

    public OrderItemVO queryOrderItemById(@Param("uid") String uid, @Param("pid") String pid);

    public void updateOrderItemById(@Param("oiid") int uid, @Param("number") String number);
}
